<?php echo nl2br($view->contest['tos_text']); ?>
<script type="text/javascript">
    contestapp.tosbox.tostitle = "<?php echo nl2br($view->contest['tos_link_text']); ?>";
</script>